"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MjHuTypeModel = void 0;
class MjHuTypeModel {
    constructor() {
        this.huType = 0;
        this.huTypeZu = new Map(); //
        this.huData = 0;
        this.jiangData = 0; //将牌 或者说是对眼的牌
        this.leftRightList = [];
        this.allRightList = [];
        this.dianpao = 0;
        this.isQianggang = false; //是否抢杠胡
    }
    model2json() {
        let obj = {
            "huType": this.huType,
            "huTypeZu": {},
            "huData": this.huData,
            "leftDataList": this.leftDataList,
            "leftDataAndHuData": this.leftDataAndHuData,
            "jiangData": this.jiangData,
            "mjWeaveList": this.mjWeaveList,
            "allDataList": this.allDataList,
            "leftRightList": this.leftRightList,
            "allRightList": this.allRightList,
            "dianpao": this.dianpao,
        };
        this.huTypeZu.forEach((value, key) => {
            obj["huTypeZu"][key] = value;
        });
        return obj;
    }
}
exports.MjHuTypeModel = MjHuTypeModel;
